﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace ECP.Utilities.Controls
{

    [Description("模块展示方式接口")]
    public interface IModelInfo
    {
        [Description("展示方式")]
        DisplayTypes DisplayType { get; set; }
         [Description("模块代码码")]
        string ModelCode { get; }
         [Description("模块名称")]
        string ModelName { get; }
         [Description("展示方法")]
        void StartModel();

        IList<PermissionInfo> Permissions { get; }


    }
    public class PermissionInfo
    {

        public PermissionInfo(string code, string name) { }
        public string PermissionName;
        public string PermissionCode;
    }

    public enum DisplayTypes
    {
        [Description("Tabpage页面展示方式")]
        TabPage = 0,
        [Description("模态对话框")]
        Dialog = 1,
        [Description("普通展示")]
        CommonShow = 2,
        [Description("子窗体")]
        MDIChild = 3,
        [Description("子窗体")]
        CallMethod = 4
    }

}
